package com.huanghuang.shuadan.common.exception.user;

import com.huanghuang.shuadan.common.exception.ExceptionEnum;

/**
 * @Author suxiaoxiao
 * @Date 2019/7/20 23:21
 * @Version 1.0
 */
public enum UserExceptionEnum implements ExceptionEnum {

    /**
     * 数据不存在
     */
    USERNAME_EXIST("200", "用户名已存在！"),

    USERNAME_NOT_FOUND("200", "用户名不存在！"),

    REGISTER_ERROR("200", "注册失败，请您联系管理员。"),

    USER_NOT_LOGIN("401", "未登录"),

    USER_PASSWORD_INCORRECT("200", "密码错误，请重新输入"),

    USER_CAPTCHA_INCORRECT("200", "验证码错误，请重新输入");

    private String code;
    private String message;

    UserExceptionEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

}
